﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using ProjectN.Core.Element.Def;

namespace ProjectN.Core.Fore.Editor
{
    public partial class BrushInfo_EditControl : UserControl
    {
        public BrushInfo_EditControl()
        {
            InitializeComponent();
        }

        public required BrushInfo Info { get; set; }

        private void RadioSolid_CheckedChanged(object sender, EventArgs e)
        {
            Info.ImageMode = false;
            Info.Image = null;
        }

        private void RadioTexture_CheckedChanged(object sender, EventArgs e)
        {
            Info.ImageMode = true;
            Info.Image = new() { Identity = string.Empty };
        }
    }
}
